using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using OFX.Aggregator.Infrastructure;

namespace OFX.Aggregator.Implementation
{
	[Serializable]
	public class StatementSourceTemplateRepository : IStatementSourceTemplateRepository
	{
		private readonly IList<StatementSourceTemplate> statementSourceTemplateList;

		public StatementSourceTemplateRepository(IList<StatementSourceTemplate> statementSourceTemplates)
		{
			this.statementSourceTemplateList = new BindingList<StatementSourceTemplate>(statementSourceTemplates);
		}

		#region IStatementSourceTemplateRepository Members

		public IList<StatementSourceTemplate> StatementSourceTemplates
		{
			[DebuggerStepThrough]
			get { return this.statementSourceTemplateList; }
		}

		#endregion
	}
}